﻿using DevExpress.Xpo;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model.Bill
{
    /// <summary>
    /// 入库单
    /// </summary>
    public class TB_StoreHouseIn : BaseXPLiteObjectClass
    {
        public TB_StoreHouseIn(Session session) : base(session) { }
        public override void AfterConstruction()
        {
            base.AfterConstruction();
        }
        string fStoreHouseInID;
        [Key, Persistent]
        public string StoreHouseInID
        {
            get { return fStoreHouseInID; }
            set { SetPropertyValue<string>("StoreHouseInID", ref fStoreHouseInID, value); }
        }
        string fBillCode;
        public string BillCode
        {
            get { return fBillCode; }
            set { SetPropertyValue<string>("BillCode", ref fBillCode, value); }
        }

        DateTime fBillDate;
        /// <summary>
        /// 入库日期
        /// </summary>
        public DateTime BillDate
        {
            get { return fBillDate; }
            set { SetPropertyValue<DateTime>("BillDate", ref fBillDate, value); }
        }
        B_Provider fProviderID;
        /// <summary>
        /// 供应商
        /// </summary>
        public B_Provider ProviderID
        {
            get { return fProviderID; }
            set { SetPropertyValue<B_Provider>("ProviderID", ref fProviderID, value); }
        }
        P_Brand fBrandID;
        /// <summary>
        /// 品牌
        /// </summary>
        public P_Brand BrandID
        {
            get { return fBrandID; }
            set { SetPropertyValue<P_Brand>("BrandID", ref fBrandID, value); }
        }
        B_Store fStoreID;
        /// <summary>
        /// 店柜
        /// </summary>
        public B_Store StoreID
        {
            get { return fStoreID; }
            set { SetPropertyValue<B_Store>("StoreID", ref fStoreID, value); }
        }
        B_Warehouse fWarehouseID;
        /// <summary>
        /// 入库仓库
        /// </summary>
        public B_Warehouse WarehouseID
        {
            get { return fWarehouseID; }
            set { SetPropertyValue<B_Warehouse>("WarehouseID", ref fWarehouseID, value); }
        }
        string fWarehousePersonID;
        /// <summary>
        /// 入库人
        /// </summary>
        public string WarehousePersonID
        {
            get { return fWarehousePersonID; }
            set { SetPropertyValue<string>("WarehousePersonID", ref fWarehousePersonID, value); }
        }
        int fStatusID;
        /// <summary>
        /// 状态
        /// </summary>
        public int StatusID
        {
            get { return fStatusID; }
            set { SetPropertyValue<int>("StatusID", ref fStatusID, value); }
        }
        int fTypeID;
        /// <summary>
        /// 入库类型
        /// </summary>
        public int TypeID
        {
            get { return fTypeID; }
            set { SetPropertyValue<int>("TypeID", ref fTypeID, value); }
        }
        decimal fQuantity;
        /// <summary>
        /// 入库总数
        /// </summary>
        public decimal Quantity
        {
            get { return fQuantity; }
            set { SetPropertyValue<decimal>("Quantity", ref fQuantity, value); }
        }
        decimal fAmount;
        /// <summary>
        /// 入库总金额
        /// </summary>
        public decimal Amount
        {
            get { return fAmount; }
            set { SetPropertyValue<decimal>("Amount", ref fAmount, value); }
        }
    }
}
